package lagou.homework.lagouhomework.Unit2.q3.code;
/**
 * 实体类的优化 将通话套餐类和上网套餐类中相同的特征和行为提取出来组成抽象套餐类
 * */
public abstract  class Packages {
    // 通话套餐类和上网套餐类中相同的特征有每月资费

    private  double  charges;   //  每月资费

    public Packages() {
    }

    public Packages(double charges) {
        setCharges(charges);
    }

    public double getCharges() {
        return charges;
    }

    public void setCharges(double charges) {
        this.charges = charges;
    }

    public abstract  void showInfo();


}
